package cn.tedu.boot4_1.mapper;

import entity.Emp;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.plugin.Intercepts;

import java.util.List;

@Mapper
public interface EmpMapper {
    @Insert("insert into newmep value(null,#{name},#{job},#{sal})")
    void insert(Emp emp);
    @Select("select * from newemp")
    List<Emp> select();
    @Update("update newemp set name=#{name},job=#{job},sal=#{sal} where id=#{id}")
    void update(Emp emp);
    @Delete("delete from newemp where id=#{id}")
    void delete(int id);
}













